package cn.hdu.liang.core.service.order;

import cn.hdu.liang.core.bean.order.Detail;
import cn.hdu.liang.core.query.order.DetailQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;


public interface DetailService {

    public Integer addDetail(Detail detail);

    public Detail getDetailByKey(Integer id);

    public List<Detail> getDetailsByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateDetailByKey(Detail detail);

    public Pagination getDetailListWithPage(DetailQuery detailQuery);

    public List<Detail> getDetailList(DetailQuery detailQuery);
}
